﻿#ifndef TLVCMDWIDGET_H
#define TLVCMDWIDGET_H

#include <PageWidget/PageWidget.h>

#include "../TlvCmdPanel/TlvCmdPanel.h"
#include "stores/TlvProject/TlvDataModelTypeDef.h"


class TlvCmdWidget : public PageWidget
{
    Q_OBJECT

public:
    explicit TlvCmdWidget(QWidget *parent = nullptr);
    ~TlvCmdWidget();

    TlvCmdPanel* addPage(const QString& pageName);

    QList<CmdPageModel> toCmdsModel();

protected:
    void initByDataStore();
    TlvCmdPanel* panelAt(int pageID);
    void onAddClicked() override;
};

#endif // TLVCMDWIDGET_H
